
define(["business/services/constant"], function (constant) {
   var databaseURL = constant.config.BASEURL_DATABASE;//8083
   var bostbarURL = constant.config.BASEURL_BOSTBAR;
   var categoryAPI = constant.config.CONSTANT_CATEGORY;
   var fileAPI = constant.config.CONSTANT_FILE;
   var libraryURL = constant.config.BASEURL_LIBRARY;//8084
   var libraryAPI = constant.config.CONSTANT_LIBRARY;
   var newsURL = constant.config.BASEURL_NEWS;
   var newsAPI = constant.config.CONSTANT_NEWS;
   var postbarAPI = constant.config.CONSTANT_BOSTBAR;
   var courseURL = constant.config.BASEURL_WorkSkill;
   var courseAPI = constant.config.CONSTANT_COURSE;
   var plannhierAPI = constant.config.CONSTANT_PLANNHIER;
   var skillAPI = constant.config.CONSTANT_WorkSkill;
   var subjectApi=constant.config.CONSTANT_SUBJECT;
   var adverApi=constant.config.CONSTANT_ADVER;
   return {
	   	adverHttpService:function(requesion){
			return constant.httpSend(libraryURL,adverApi,requesion);
		},
	   	subjectHttpService:function(requesion){
		    return constant.httpSend(databaseURL,subjectApi,requesion);
	    },
   		categoryHttpService:function(requesion){
   			return constant.httpSend(databaseURL,categoryAPI,requesion);
   		},
   		fileHttpService:function(requesion){
   			return constant.httpSend(databaseURL,fileAPI,requesion);
   		},
   		libraryHttpService:function(requesion){
   			return constant.httpSend(libraryURL,libraryAPI,requesion);
   		},
   		newsHttpService:function(requesion){
   			return constant.httpSend(newsURL,newsAPI,requesion);
   		},
   		postbarHttpService:function(requesion){
   			return constant.httpSend(bostbarURL,postbarAPI,requesion);
   		},
   		courseHttpService:function(requesion){
   			return constant.httpSend(courseURL,courseAPI,requesion);
   		},
   		plannhierHttpService:function(requesion){
   			return constant.httpSend(courseURL,plannhierAPI,requesion);
   		},
   		skillHttpService:function(requesion){
   			return constant.httpSend(courseURL,skillAPI,requesion);
   		},
   	}
});
